MATCOUNT
MATCOUNT1

Syntax: MATCOUNT (array, value)     
    or: MATCOUNT (array1, array2)
   and: MATCOUNT1 (array, value)
    or: MATCOUNT1 (array1, array2)
Location: Math Package

MATCOUNT is a function which counts how often a certain value appears in the given array where array and value can be of any type (even strings) as long as they are of the same type.

The second syntax allows you to pass two arrays array1 and array2 of the same type and dimensions, MATCOUNT will then compare these two arrays and return the number of different elements.

MATCOUNT1 is almost the same - it compares values using a==b rather than a=b.

Example:
x=MATCOUNT(x%,y%)

CROSS-REFERENCE:
MATCOUNT comparisons are exact in that two numbers a and b are only regarded as equal if a=b in SuperBASIC terms. The same is true for strings, it means that their comparison is case-sensitive.
